package models

import "time"

// 门禁通知
type SafeNotice struct {
	Id              int64     `orm:"description(自增主键)"`
	Device          *Device   `orm:"rel(fk);null;default(0);description(设备Id)" json:"-"`
	Student         *Student  `orm:"rel(fk);null;default(0);description(学生Id)" json:"-"`
	IsArrived       int       `orm:"description(是否到校，0未到校 1已到校)"`
	IsLeft          int       `orm:"description(是否离校，0未离校 1已离校)"`
	Arrived         time.Time `orm:"type(datetime);description(到校时间)" json:"-"`
	ArrivedShow     string    `orm:"-" json:"-"`
	ArrivedTimeShow string    `orm:"-"`
	ArrivedDateShow string    `orm:"-"`
	Left            time.Time `orm:"type(datetime);null;description(离校时间)" json:"-"`
	LeftShow        string    `orm:"-" json:"-"`
	LeftTimeShow    string    `orm:"-"`
	LeftDateShow    string    `orm:"-"`
	CreatedDate     time.Time `orm:"auto_now_add;type(date);description(创建日期)" json:"-"`
	Created         time.Time `orm:"auto_now_add;type(datetime);description(创建时间)" json:"-"`
	StudentName     string    `orm:"-"`
}
